<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>块级元素</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            /* 设置成行行内块 */
            /* display: inline-block; */
            display: inline;
        }

        .div1 {
            background-color: red;
        }

        .div2 {
            background-color: orange;
        }

        span {
            width: 100px;
            height: 100px;
            display: block;
        }

        .span1 {
            background-color: brown;

        }

        .span2 {
            background-color: orange;
        }
        img{
            width: 100px;
            height: 100px;
             display: block;
        }
    </style>
</head>

<body>
    <!-- 块元素 -->
    <div class="div1">div 标签1</div>
    <div class="div2">div 标签2</div>

    <!-- 行内元素 一行可以共存多个 尺寸由内容撑开 -->
    <span class="span1">span11111</span>
    <span class="span2">span2</span>

    <!-- 行内块元素 -->
    <img src="图片/1.png" alt="">
     <img src="图片/OIP-C.jpg" alt="">
</body>

</html>
